{template header}

{template sidebar}

<!-- artile begin -->
<div class="article">



  <div class="tab">
    <ul>
        <li class="current"><a href="{$this->url( $c )}">供货商管理</a>
            </li>
    </ul>
</div>




<!--{if $a == 'add' || $a == 'edit'}-->
    <form method="post" action="{$this->url($c, 'save', array('id' => $result['id']))}">
        <table cellpadding="1" cellspacing="1" border="0" width="100%">
            <tr>
                <th colspan="2" class="td2"><b>{$a == 'add' ? '添加供货商' : ($a == 'edit' ? '编辑供货商' : '')}</b></th>
            </tr>
            <tr>
                <td class="td1" width="30%">编号：</td>
                <td class="td2">
                    <!-- class="required" 必填字段  -->
                    <input type="text" size="30" name="title" placeholder="请输入供货商编号" class="required" value="{$a == 'edit' ? $result['title'] : ''}" />
                    <a title="保存供货商" class="btn btn-success save" href="{$this->url($c)}">自动生成</a>
                </td>
            </tr>
            <tr>
                <td class="td1" width="30%">供货商名称：</td>
                <td class="td2">
                    <!-- class="required" 必填字段  -->
                    <input type="text" size="30" name="title" placeholder="请输入供货商名称" class="required" value="{$a == 'edit' ? $result['title'] : ''}" />
                </td>
            </tr>

            <tr>
                <td class="td1">供货商地址：</td>
                <td class="td2">
                    <input type="text" size="30" name="address" placeholder="请输入供货商地址" value="{$a == 'edit' ? $result['address'] : ''}" />
                </td>
            </tr>

            <tr>
                <td class="td1">供货商类型：</td>
                <td class="td2">
                    <!-- <input type="text" name="type" placeholder="请输入供货商类型" value="{$a == 'edit' ? $result['type'] : ''}" /> -->
                    <select name="salerType">
                        <option value="1">厂家</option>
                        <option value="2">批发商</option>
                        <option value="3">阿里批发商</option>
                    </select>
                </td>
            </tr>

            <tr>
                <td class="td1">供货商品质等级：</td>
                <td class="td2">
                    <!--  <input type="text" name="quality" placeholder="请输入供货商品质等级" value="{$a == 'edit' ? $result['quality'] : ''}" />-->
                    <select name="salerType">
                        <option value="1">1</option>
                        <option value="2">2</option>
                        <option value="3">3</option>
                    </select>
                </td>
            </tr>

            <tr>
                <td class="td1">供货商经营品类：</td>
                <td class="td2">
                    <!-- <input type="text" name="sort" placeholder="请输入供货商经营品类" value="{$a == 'edit' ? $result['sort'] : ''}" />  -->
                    <input type="checkbox" class="all" />婴幼装
                    <input type="checkbox" class="all" />中小童
                    <input type="checkbox" class="all" />中大童
                </td>
            </tr>

            <tr>
                <td class="td1">供货商折扣信息：</td>
                <td class="td2">
                    <!--  <input type="text" name="discount" placeholder="请输入供货商折扣信息" value="{$a == 'edit' ? $result['discount'] : ''}" />  -->
                    <select name="disCountType">
                        <option value="1">25折</option>
                        <option value="2">26折</option>
                        <option value="3">27折</option>
                        <option value="1">28折</option>
                        <option value="2">29折</option>
                        <option value="3">30折</option>
                        <option value="1">31折</option>
                        <option value="2">32折</option>
                        <option value="3">33折</option>
                        <option value="2">34折</option>
                        <option value="3">35折</option>
                    </select>
                </td>
            </tr>
            <tr>
                <td class="td1">收货地址：</td>
                <td class="td2">
                    <input type="text" name="recvAddr" placeholder="请输入收货地址" value="{$a == 'edit' ? $result['discount'] : ''}" />
                </td>
            </tr>
            <tr>
                <td class="td1">备注：</td>
                <td class="td2">
                    <textarea name="sql" placeholder="请输入SQL语句" cols="50" rows="5" class="required"></textarea>
                </td>
            </tr>
            <tr>
                <td colspan="2" class="td4">
                    <a title="保存供货商" class="btn btn-success save" href="{$this->url($c)}">保 存</a>
                </td>
            </tr>
        </table>
    </form>
    <!--{/if}-->
</div>
<!-- artile end -->
{template footer}